<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<rich:panel header="#{messages['partner.product.extension.list']}">
	<h:panelGrid ><h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText></h:panelGrid>
	
	<t:panelGrid columns="2">
		<h:outputText value="#{messages['code']}" styleClass="standardText_Label" />
		<h:outputText value="#{partnerProductExtBean.partnerProduct.code}" styleClass="standardText" />
		
		<h:outputText value="#{messages['name']}" styleClass="standardText_Label" />
		<h:outputText value="#{partnerProductExtBean.partnerProduct.name}" styleClass="standardText" />
	</t:panelGrid>
	
	<rich:spacer height="30" />
	
	<rich:dataTable id="data" var="extension" value="#{partnerProductExtBean.extensionList}" rows="20" width="99%" >
		<rich:column style="text-align:center;width:50%;" >
			<f:facet name="header">
				<h:outputText value="#{messages['from']}"></h:outputText>
			</f:facet>
			<h:outputText value="#{extension.from}"></h:outputText>
		</rich:column>
		<rich:column style="text-align:center;width:50%;">
			<f:facet name="header">
				<h:outputText value="#{messages['to']}"></h:outputText>
			</f:facet>
			<h:outputText value="#{extension.to}"></h:outputText>
		</rich:column>
	</rich:dataTable>
	<rich:spacer height="30" ></rich:spacer>
	<rich:datascroller align="left"  for="data" maxPages="20" />

	<rich:spacer height="30" />
	<t:panelGrid columns="1">
		<h:commandButton value="#{messages['create']}" styleClass="button" action="#{partnerProductExtBean.navCreateAction}" immediate="true"></h:commandButton>
	</t:panelGrid>

            
</rich:panel>
